package com.koron.system.unityUser.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * description: 一般结果信息
 * @author huangsj
 * @date 2023/6/29 15:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "一般结果信息")
public class WsResult<T> implements Serializable {
    private T data;

    @ApiModelProperty(value = "状态编码1，-1，-2，-3")
    private int code;

    @ApiModelProperty(value = "状态值（成功，没有权限，参数错误，系统错误）")
    private String msg;

    @ApiModelProperty(value = "错误信息详情")
    private String error;
}
